<template>
  <div style="margin: 16px;">
    <!-- todo    -->
    <van-button
      round block
      :loading="isSubmitBtnDisabled"
      loading-text="正在提交..."
      :type="(isSubmitBtnDisabled ? ( typeName || 'warning') : 'info') "
      :native-type="isSubmitBtnDisabled ? 'button' : 'submit' "
      :disabled="isSubmitBtnDisabled"
    >
      {{textName || '提交'}}
    </van-button>
  </div>
</template>

<script>
export default {
  name: "DebounceSubmitBtn",
  props: {
    isSubmitBtnDisabled: Boolean,
    typeName: String,
    textName: String,
  },
}
</script>

<style scoped>

</style>
